const cacheName="cache_v1",urlList=["/planning-poker/main.min.js","/planning-poker/vendor.min.js","/planning-poker/"];function attachEvent(n,e,t){n.removeEventListener(e,t),n.addEventListener(e,t)}function onInstall(n){caches.open(cacheName).then((function(n){n.addAll(urlList)}))}function cacheLite(n){return new Promise((function(e){fetch(n).then((function(t){caches.open(cacheName).then((function(e){e.put(n,t)})),e(t.clone())})).catch((function(){caches.match(n).then((function(n){e(n||caches.match("/"))}))}))}))}function onFetch(n){const{request:e}=n;new URL(e.url).origin===location.origin&&n.respondWith(cacheLite(e))}attachEvent(self,"install",onInstall),attachEvent(self,"fetch",onFetch);